<?php /* Copyright 2010 Karl R. Wilcox 

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License. */


function makeChg_axe ( $node ) {
  $axe_data = array (
    'addice' => array (
'height' => 1052, 'width' => 744, 'orient_to_ordinary' => true, 'hflex' => 1.4, 'wflex' => 1.2,
	'body' => 
       '<g />',
   'features' => array (
       'handle' => array ( 'body' => 
       '<path  stroke="#000000" stroke-width="6" d="m 564.9,10.25 c 0,0 -8.3,-15.848 -52,0.68 C 477.1,184.3 626.4,192.8 572,396.4 517.6,600 555.9,657.8 537.8,729 514.3,825.5 387.1,952.9 328,963.8 339.3,1010 374.9,1061 427.5,1045 475.7,1009 621.7,957.7 631.1,729 636.2,605.9 597.7,484.8 662.2,279.8 661.6,175.7 569.5,17.48 564.9,10.25 z" /> ' ),
       'blade' => array ( 'body' => 
           '<path stroke="#000000" stroke-width="6" d="M 510.3,73.08 15.54,225.4 410.4,273.6 738.4,108.8 c 0,0 -3,10.3 0,0 6.2,-83.93 -5.7,-79.34 -10.4,-77.79 -4.6,1.56 -132.5,31.19 -132.5,31.19 0,0 9.9,31.6 2.6,47.8 -8.5,19 -89.5,48.5 -86.5,-9.2 -2.6,-9.84 0.2,-26.17 -1.3,-27.72 z" /> 
           <path stroke="#000000" stroke-width="6" d="M 725.44,30.14 C 722.14,44.43 727.64,79.6 727.64,79.6 L 406.68,275.25" />' ),
   ),
   ),
  'battle-axe' => array ( 'height' => 395, 'width' => 261, 'orient_to_ordinary' => true, 'hflex' => 1.4, 'wflex' => 1.2,
'body' => 
       '<g />',
   'features' => array (
       'handle' => array ( 'body' => 
       '<path  stroke="#000000" stroke-width="3" d="M 151.7,4.454 130,53.42 l 18.7,42.32 -7.2,6.06 -3.7,222.5 -8.4,24.8 22.9,40.5 23,-39.9 -7.8,-24.2 C 163.3,234.7 165.4,176.1 162,101.8 l -9,-6.66 15.7,-42.93 -17,-47.756 z" />
    <g stroke="#000000" stroke-width="3" fill="none" >
    <path  d="M 151.14,28.03 L 151.14,28.03 L 151.74,77.60"  />
    <path  d="M 154.16,159.82 L 152.34,340.58"  />
    <path  d="M 153.80,361.26 L 153.05,380.07"  />
    <path  d="M 158.20,302.50 L 158.81,342.40"  />
    <path  d="M 163.04,325.10 L 166.67,342.03"  />
    <path  d="M 162.98,361.29 L 158.74,367.94"  />
    <path  d="M 131.51,348.34 C 154.12,361.30 175.92,351.47 175.92,351.47 L 175.92,351.47 L 174.71,348.05"  />
    <path  d="M 139.78,148.76 C 158.59,162.01 162.87,146.62 162.87,146.62"  />
    <path  d="M 139.78,109.43 C 158.59,122.68 162.87,107.29 162.87,107.29"  />
    </g>' ),
       'blade' => array ( 'body' => 
           '<path stroke="#000000" stroke-width="3" d="m 148.7,95.74 -7.2,6.06 0.6,18.1 c 0,0 -25.3,2 -39.3,-9 -11.73,-9.3 -28.44,-20.6 -3.65,-69.57 12.65,2.42 -84.59,2.55 -79.8,88.87 3.78,67.1 60.45,91.3 84.65,84.6 -15.73,-24.1 -19.36,-58.6 3.6,-71.9 21.6,-12.5 33.9,-7.9 33.9,-7.9 l -0.3,18.2 22,0.3 0.6,-19.1 c 0,0 38.1,13.1 47.8,13.9 1.4,-7.7 -15.7,-15.1 -7.9,-15.1 7.9,0 37.5,-1.8 41.8,-6.6 4.2,-4.9 -49.7,0.5 -43,-2.4 6.6,-2.9 4.3,-5.7 10.9,-16.4 4.8,-6 -54.4,19.4 -49,14.5 0,-15.7 -2.4,-20.5 -2.4,-20.5 l -9,-6.66 -4.3,0.6 z" />
            <path stroke="#000000" stroke-width="3" fill="none" d="M 31.27,104.32 C 20.73,168.58 79.08,197.79 79.081,197.79" />
            <path stroke="#000000" stroke-width="3" fill="none" d="M 47.76,111.46 C 39.9,158.01 83.42,179.17 83.42,179.17" />
            <path stroke="#000000" stroke-width="3" fill="none" d="M 156.58,115.69 L 156.58,144.1" />' ),
   )),
  'common-axe' => array ( 'height' => 80, 'width' => 46, 'orient_to_ordinary' => true, 'hflex' => 1.4, 'wflex' => 1.2,
	'body' => 
       '<g />',
   'features' => array (
       'handle' => array ( 'body' => 
       '<path  stroke="#000000" stroke-width="1" d="M 35.54,9.643 C 33.4,31.61 36.07,50.36 35.54,61.61 30.36,67.5 26.43,75.53 30,79.11 33.57,82.68 44.11,76.07 45.18,70.54 46.07,42.86 43.03,29.29 44.65,10.35 40.71,4.286 38.57,7.143 35.54,9.643 z" />
    <g stroke="#000000" stroke-width="1" fill="none" >
    <path  d="m 42.5,10.71 c 0.18,7.68 1.79,57.5 0.72,59.64 -1.07,2.15 -5.72,5.54 -5.72,5.54"  />
    </g>' ),
       'blade' => array ( 'body' => 
           '<path stroke="#000000" stroke-width="1" d="M 45.71,11.61 35.18,11.25 c 0,0 -25.08,0.87 -26.787,-10.7142 C 1.429,1.607 -0.8929,26.61 6.964,36.43 22.32,27.5 17.68,26.43 34.82,23.57 c 0,0 10.72,-0.89 10.72,-0.89 l 0.17,-11.07 z" /> 
           <path stroke="#000000" stroke-width="1" d="m 33.93,11.43 0,12.32" />' ),
   )),
'turner-axe' => array ( 'width' => 60, 'height' => 130, 'body' => 
       '<g />',
   'features' => array (
       'handle' => array ( 'body' => '<path  stroke="#000000" stroke-width="2" d="M 37.86,13.57 C 34.29,37.86 25.71,93.93 47.5,130 53.96,140.7 66.14,127.4 60,121.4 47.58,109.2 45.36,59.29 49.64,14.64 50,1.786 39.29,13.21 39.29,13.21" />' ),
       'blade' => array ( 'body' => '<path stroke="#000000" stroke-width="2" d="M 7.33,71.46 C 7.184,71.32 7.066,70.82 7.066,70.35 c 0,-0.57 -0.204,-0.82 -0.715,-0.82 -0.646,0 -0.714,-0.25 -0.714,-2.5 0,-2.43 -0.04,-2.5 -0.893,-2.5 -0.832,0 -0.893,-0.11 -0.893,-1.78 0,-1.68 -0.06,-1.79 -0.892,-1.79 l -0.893,0 0,-5.18 c 0,-4.93 -0.03,-5.18 -0.715,-5.18 -0.4757,0 -0.7139,-0.25 -0.7139,-0.71 0,-0.47 0.2382,-0.72 0.7139,-0.72 0.701,0 0.715,-0.25 0.715,-13.03 l 0,-13.04 0.893,0 c 0.867,0 0.892,-0.1 0.892,-2.5 0,-2.43 0.04,-2.5 0.893,-2.5 0.872,0 0.893,-0.1 0.893,-2.68 0,-2.41 0.07,-2.67 0.693,-2.67 0.546,0 0.743,-0.34 0.932,-1.61 0.189,-1.253 0.389,-1.608 0.914,-1.608 0.479,0 0.675,-0.256 0.675,-0.872 0,-1.15 0.45,-1.378 2.159,-1.09 1.39,0.236 1.41,0.257 1.41,1.815 0,1.445 0.1,1.575 0.9,1.575 0.71,0 0.89,0.18 0.89,0.89 0,0.72 0.18,0.9 0.89,0.9 0.72,0 0.89,0.17 0.89,0.89 0,0.65 0.19,0.89 0.72,0.89 0.52,0 0.71,0.24 0.71,0.89 0,0.71 0.18,0.9 0.87,0.9 0.63,0 0.9,0.22 0.98,0.8 0.1,0.52 0.4,0.84 0.92,0.92 0.52,0.1 0.8,0.36 0.8,0.8 0,0.5 0.25,0.69 0.9,0.69 0.7,0 0.89,0.18 0.89,0.86 0,0.76 0.21,0.89 1.79,1.11 1.43,0.19 1.78,0.37 1.78,0.92 0,0.44 0.25,0.68 0.72,0.68 0.47,0 0.71,-0.24 0.71,-0.71 0,-0.67 0.24,-0.72 3.57,-0.72 l 3.57,0 0,1.61 0,1.61 2.5,0 c 2.43,0 2.5,0 2.5,0.89 0,0.87 0.1,0.89 2.68,0.89 2.61,0 2.68,-0 2.68,-0.89 0,-0.86 0.1,-0.89 2.46,-0.89 l 2.43,0 0.22,1.25 c 0.1,0.69 0.1,1.8 0,2.46 -0.25,1.6 -0.54,1.65 -9.79,1.65 l -7.46,0 0,8.57 0,8.57 2.68,0 c 2.6,0 2.67,-0 2.67,-0.89 0,-0.9 0,-0.9 3.4,-0.9 3.39,0 3.39,0 3.39,-0.89 0,-0.82 0.14,-0.89 1.57,-0.89 1.5,0 1.57,0 1.79,1.32 0.1,0.75 0.21,1.96 0.21,2.68 0,1.21 -0.11,1.35 -0.89,1.35 -0.72,0 -0.89,0.18 -0.89,0.9 0,0.82 -0.11,0.89 -1.79,0.89 -1.54,0 -1.79,0.11 -1.79,0.71 0,0.68 -0.25,0.72 -4.78,0.72 -5.76,0 -7,0.21 -7,1.11 0,0.57 -0.28,0.67 -1.75,0.67 l -1.74,0 -0.24,1.61 c -0.19,1.29 -0.39,1.61 -0.94,1.61 -0.53,0 -0.69,0.25 -0.69,1.07 0,0.89 -0.14,1.07 -0.89,1.07 -0.66,0 -0.89,0.18 -0.89,0.72 0,0.53 -0.24,0.71 -0.9,0.71 -0.65,0 -0.89,-0.18 -0.89,-0.71 0,-0.54 -0.24,-0.72 -0.89,-0.72 -0.66,0 -0.9,0.18 -0.9,0.72 0,0.6 -0.24,0.71 -1.38,0.71 -2.39,0 -3.62,0.39 -3.62,1.11 0,0.5 -0.25,0.68 -0.89,0.68 -0.71,0 -0.89,0.17 -0.89,0.89 0,0.71 -0.18,0.89 -0.89,0.89 -0.82,0 -0.9,0.14 -0.9,1.57 0,1.4 -0.1,1.61 -0.8,1.72 -0.69,0.1 -0.82,0.35 -0.91,1.82 -0.1,1.11 -0.27,1.68 -0.58,1.68 -0.264,0 -0.939,0.1 -1.504,0.21 -0.567,0.11 -1.15,0.1 -1.296,-0.1 l 0,0 z" />' ),
   )),
  'pick-axe' => array ( 'height' => 150, 'width' => 200, 'orient_to_ordinary' => true, 'hflex' => 1.4, 'wflex' => 1.2,
'body' => 
       '<g />',
   'features' => array (
       'handle' => array ( 'body' => 
       '<path  stroke="#000000" stroke-width="3" d="m 156.3,3.4 c 7.2,-4.25 2.8,-5.5 14.2,-0.75 2.6,18.2 4.8,142.15 0.9,143.05 -4,0.9 -16.4,4.8 -15.9,-1.8 0.4,-6.5 0.8,-140.5 0.8,-140.5 z" />
    <g stroke="#000000" stroke-width="3" fill="none" >
    <path  d="M 167,4.35 m 0,0 c 5,76.9 4.7,148.75 3,137.05"  />
    </g>'),
          'blade' => array ( 'body' => 
           '<path stroke="#000000" stroke-width="3" d="M 2.1,90.45 c 51.3,-44.35 172.7,-74.8 194.5,-77.8 2.1,13 -1.8,32.15 0.8,29.55 0,0 -128.35,14.75 -195.3,48.25 z" />    <g stroke="#000000" stroke-width="3" fill="none" >
    		<path  d="m 1.3,90 m 0,0 C 76.4,50.7 185.6,37.9 196.1,37"  />
    		</g>' ),
),
   ));
  $type = $node->get_attribute('subtype');
  if ( isset($axe_data[$type]) ) {
      return $axe_data[$type];
  } else {
    my_trigger_error ( "No axe $type", E_USER_WARNING, __FILE__, __LINE__ );
    return null;
  }
}
?>
